<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Glob</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> Glob</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Glob matches globbing patterns against text.</p>
<p class="description"><p>if match_glob(&quot;foo.*&quot;, &quot;foo.bar&quot;) echo &quot;matched\n&quot;;</p><p>// prints foo.bar and foo.baz  $regex = glob_to_regex(&quot;foo.*&quot;);  for (array('foo.bar', 'foo.baz', 'foo', 'bar') as $t)  {    if (/$regex/) echo &quot;matched: $car\n&quot;;  }</p><p>Glob implements glob(3) style matching that can be used to match  against text, rather than fetching names from a filesystem.</p><p>Based on the Perl Text::Glob module.</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Richard Clamp &lt;<a href="mailto:richardc@unixbeard.net">richardc@unixbeard.net</a>&gt; Perl version</li>
				<li><span class="field">author:</span> Fabien Potencier &lt;<a href="mailto:fabien.potencier@symfony-project.com">fabien.potencier@symfony-project.com</a>&gt; PHP port</li>
				<li><span class="field">copyright:</span> 2004-2005 Fabien Potencier &lt;fabien.potencier@symfony-project.com&gt;</li>
				<li><span class="field">copyright:</span> 2002 Richard Clamp &lt;richardc@unixbeard.net&gt;</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_slinks---common---Finder---Glob.php.html">/slinks/common/Finder/Glob.php</a> (line <span class="field">36</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
												<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
											static <span class="method-result">string</span>
										<a href="#toRegex" title="details" class="method-name">toRegex</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$glob</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$strictLeadingDot</span> = <span class="var-default">true</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$strictWildcardSlash</span> = <span class="var-default">true</span>])
									</div>
																							</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
													<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodtoRegex" id="toRegex"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static toRegex</span> (line <span class="line-number">45</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a regexp which is the equivalent of the glob pattern.</p>
	<ul class="tags">
				<li><span class="field">return:</span> regex The regexp</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			toRegex
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$glob</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$strictLeadingDot</span> = <span class="var-default">true</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$strictWildcardSlash</span> = <span class="var-default">true</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$glob</span><span class="var-description">: The glob pattern</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$strictLeadingDot</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$strictWildcardSlash</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Thu, 21 Jul 2011 00:28:43 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>